<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body></body>
  <script>
    /* 
        箭头函数的返回值可以直接写在箭头后
            如果直接在箭头后设置对象字面量为返回值时，对象字面量必须使用（）括起来
    */
    const fn = () => ({ name: "zs", age: 18 });
    let res = fn();
    console.log(res, "res");
  </script>
</html>
